package com.damie.service;

import com.damie.domain.WasteRating;
import com.baomidou.mybatisplus.extension.service.IService;
import com.damie.param.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Alon
 * @since 2021-01-25
 */
public interface WasteRatingService extends IService<WasteRating> {
    /**
     * 结束订单评分
     * @param wasteRatingParam
     * @return
     */
    Boolean insertRating(WasteRatingParam wasteRatingParam, HttpServletRequest request);

    /**
     * 订单投诉
     */
    Boolean complain(WasteComplainParam wasteComplainParam);

    /**
     * 追加评论
     * 根据订单id追加评论
     */
    Boolean modification(CommentParam commentParam);

    /**
     * 删除评论
     * @return
     */
    Boolean deletedComment(String orderId);

    /**
     * 站点回复用户评论
     * 2、获取订单id
     */
    Boolean siteComment(ResultSiteParam resultSiteParam);

    /**
     * 查询这个本站点的所有评论
     */
    List<WasteRating> selectSite(SitePageParam sitePageParam,HttpServletRequest request);
}
